package com.singularity.common.domain.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @author 天
 *
 * @description: 附件类
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("attachment")
public class Attachment {

    @TableId(type = IdType.AUTO)
    private Long id;

    private String ownerType;

    private Long ownerId;

    private String name;

    private String objName;

    private String path;

    private String type;

    private Long size;

    @TableField(fill = FieldFill.INSERT)
    private Date createdAt;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updatedAt;
}
